import "reflect-metadata";
import { DataSource } from "typeorm";

export const AppDataSource = new DataSource({
  type: "postgres",
  host: "localhost",
  port: 5432,
  username: "postgres",
  password: "1103336269",
  database: "yiqingang-test",
  synchronize: true,
  logging: true,
  entities: [__dirname + "/entity/*{.ts,.js}"],
  migrations: [__dirname + "/migration/*{.ts,.js}"],
  subscribers: [],
});
